<?php
/**
 * Created by PhpStorm.
 * User: CY
 * Date: 2018/3/8
 * Time: 17:40
 */

namespace app\api\model;


class ProductImage extends BaseModel
{
    protected $hidden = ['img_id','delete_time','product_id'];

    /**
     * 关联图片表
     * @return \think\model\relation\BelongsTo
     */
    public function imgUrl(){
        return $this->belongsTo('Image','img_id','id');
    }
}